package com.logback.hello;

import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import org.junit.Test;
import org.slf4j.LoggerFactory;

/**
 * 日志的继承
 *
 * @author: May
 * @date 2019年7月19日 14:06:33
 */
public class SelectionRules {
    @Test
    public void rule() {
        Logger logger = (Logger) LoggerFactory.getLogger("com.mime");
        logger.setLevel(Level.INFO);

        logger.info("-----info-----");
        logger.debug("------debug-------");

        Logger logger1 = (Logger) LoggerFactory.getLogger("com.mime.sub");
        logger1.info("---------info----------");
        logger1.debug("--------debug-----------");

    }
}
